﻿using System;

namespace Route
{
    public enum WayDirection { Positive, Negative };

    // the way, the direction they were taken and their start and end points
    [Serializable()]
    public class Trek
    {
        private readonly int _wayID;
        private readonly int _startNodeID;
        private readonly int _endNodeID;
        private readonly WayDirection _direction;

        public Trek(int wayID, int startNodeID, int endnodeID, WayDirection direction)
        {
            _wayID = wayID;
            _startNodeID = startNodeID;
            _endNodeID = endnodeID;
            _direction = direction;
        }

        public int WayID
        {
            get { return _wayID; }
        }

        public int StartNodeID
        {
            get { return _startNodeID; }
        }

        public int EndNodeID
        {
            get { return _endNodeID; }
        }

        public WayDirection Direction
        {
            get { return _direction; }
        }
    }
}
